import { Alova } from '@/utils/http/alova/index';

//获取table
export function getType(params: any) {
  return Alova.Post('/admin/type', params);
}

export function putType(params: any) {
  return Alova.Put('/admin/type', params);
}

export function patchType(params: any) {
  return Alova.Patch('/admin/type', params);
}

export function deleteType(id: number) {
  return Alova.Delete('/admin/type/' + id);
}
